package cn.ex.ymcc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @Author: ZeWangmu
 * @Date: 2022/07/15/18:46
 * @Description: 发送短线验证码的实体
 */
@Component
@ConfigurationProperties(prefix= "ymcc.smsverifycode")
@RefreshScope  //此注解实现了动态加载配置文件
@Data
public class SMSVerifyCodeProperties {
    //发送间隔
    private int interval;
    //验证码长度
    private int length;
    //过期时间
    private int expire;

    private String title;

}
